/**
 * $Id$
 * @author mcanovas
 * @date   Feb 28, 2012 9:55:08 AM
 *
 * Copyright (C) 2012 Scytl Secure Electronic Voting SA
 *
 * All rights reserved.
 *
 */
package org.sk.gsync.app.spring;

import org.sk.gsync.app.synch.Downloader;
import org.sk.gsync.app.synch.SynchDispatcher;
import org.sk.gsync.app.synch.SynchronizationManager;
import org.sk.gsync.app.synch.Uploader;
import org.sk.gsync.app.utils.file.DirWatcher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SynchronizationSpringConfig {

    @Bean(name = "synchDispatcher")
    public SynchDispatcher getSynchDispatcher() {
        return new SynchDispatcher();
    }

    @Bean(name = "downloader")
    public Downloader getDownloader() {
        return new Downloader();
    }

    @Bean(name = "uploader")
    public Uploader getUploader() {
        return new Uploader();
    }

    @Bean(name = "synchronizationManager")
    public SynchronizationManager getSynchronizationManager() {
        return new SynchronizationManager();
    }

    @Bean(name = "dirWatcher")
    public DirWatcher getDirWatcher() {
        return new DirWatcher();
    }
}
